<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="/resource/UserPwoer.tld" prefix="p"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<c:set var="path" value="${pageContext.request.contextPath }" />
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>搜索</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<script type="text/javascript"
	src="${path }/resource/js/jquery-2.1.4.min.js"></script>
<script type="text/javascript"
	src="${path }/resource/js/systools/DDMBase.js"></script>

<link rel="stylesheet" href="${path }/resource/weixin/css/search.css">
</head>
<body>
	<!-- 头部 -->
	 <header data-am-widget="header"
          class="am-header back-e">
      
<form class="form-horizontal" id="dataform" action="${path}/index/searchFy"
method="post"
			>
			<input type="search" name="keyWord" class="search-input " id="searchInput" datatype="*"
				placeholder="找房子">
				<input id="submit" type="submit" style="display: none" >
				<ul class="title-ul am-avg-sm-4">
				<li class="text-center"><span class="font-s2">区域</span> <select
					name="fyDescription" class="form-control autoFull select-hidden "
					data-filed="name" data-value="name"
					data-url="${path}/visitor/dataDictionary/showDataDictionary"
					data-param="{type:'区域'}">
						<option value=''>--请选择区域--</option>
				</select></li>
				<li class="text-center"><span class="font-s2">类别</span> <select
					class="form-control autoFull select-hidden " data-filed="name"
					data-value="name" name="infoZzType"
					data-url="${path}/visitor/dataDictionary/showDataDictionary"
					data-param="{type:'住宅类型'}">
						<option value=''>--请选择住宅类别--</option>
				</select></li>
				<li class="text-center"><span class="font-s2">总价</span> <select
					class="form-control  select-hidden " data-filed="name"
					data-value="name" name="price">
						<option value=''>--请选择总价--</option>
						<option value="10-20">10-20万</option>
						<option value="20-30">20-30万</option>
						<option value="30-40">30-40万</option>
						<option value="40-1000">40万以上</option>
				</select></li>
				<li class="text-center"><span class="font-s2">面积</span> <select
					class="form-control  select-hidden" name="account">
						<option value=''>--请选择面积--</option>
						<option value="0-50">50㎡以下</option>
						<option value="50-70 ">50-70㎡</option>
						<option value="70-90">70-90㎡</option>
						<option value="90-110">90-110㎡</option>
						<option value="110-130">110-130㎡</option>
						<option value="130-10000">130㎡以上</option>

				</select></li>
			</ul>
		</form>
       
      

      <div class="am-header-right am-header-nav">
          <a  class="">
               <span class="am-header-nav-title color-y">
               取消
              </span>               
          </a>
      </div>
    </header>
    <!-- 头部结束 -->
    <!-- 主内容 -->     
    <div class="been-search margin-10">最近搜索</div>
    <div class="padding-10" id="history">
    <c:forEach items="${HISTORY_SEARCH }" var="item" >
	    <a href="${path }/index/searchFy?keyWord=${item}" class="been-span">${item }</a>
    </c:forEach>
    </div>
    <!-- 留白 -->
    <div class="blank-space back-w"> 
      	
    </div>     
         
         
          
      
     
  
  <!-- 主内容结束 -->
</body>
<script type="text/javascript">

$("#history").find("span").each(function(){
	$(this).click(function(){
		var title=$(this).html();
		$("#searchInput").val(title);
		$("#submit").trigger("click");	
		
	});
});

</script>
</html>